﻿/*----------------------------------------------------------------
  //Copyright (C) 2012 赵国伟
  //文件功能描述：城市管理
  //创建人：赵国伟
  //生成时间：2012/03/29 16:15:00
//----------------------------------------------------------------*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using Shopping.Common;
using Shopping.Model;
using Shopping.BLL;

public partial class Manage_CitiesManage : BaseManagePage
{
   
    protected string SelectOptionOfProvince;  /// 省份下拉选项；
    protected int ProvinceID;  //省份ID;
    protected string KeyWords; //城市关键字；
    protected AsPage p; //分页对象；

    protected List<CityInfo> listOfCities; /// 城市信息；
                                          
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ProvinceID = Utility.G<int>("ProvinceID");
            KeyWords = Utility.G("KeyWords");
            p = new AsPage();
            p.CurPage = Utility.G<int>("CurPage");
            if (p.CurPage <= 0)
                p.CurPage = 1;

            ProvinceCityAreasManage bllArea = new ProvinceCityAreasManage();
            listOfCities = bllArea.QueryCitiesAsPage(KeyWords, ProvinceID, p);
            SelectOptionOfProvince = ProvinceCityAreasManage.QueryProvincesToSelectOption(ProvinceID.ToString());

        }
    }





}